.class public Lb/a/i;
.super Ljava/lang/Object;
.source "ErrorReporter.java"

# interfaces
.implements Ljava/lang/Thread$UncaughtExceptionHandler;


# static fields
.field private static l:Lb/a/i;

.field private static o:I

.field private static p:I


# instance fields
.field private A:Lb/a/n;

.field a:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field b:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Lb/a/e;",
            ">;"
        }
    .end annotation
.end field

.field private c:J

.field private d:Z

.field private e:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lb/a/b/b;",
            ">;"
        }
    .end annotation
.end field

.field private final f:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Lb/a/r;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private final g:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Lb/a/r;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private h:Lb/a/c/g;

.field private i:Z

.field private final j:Ljava/lang/Object;

.field private k:Ljava/lang/Thread$UncaughtExceptionHandler;

.field private m:Landroid/content/Context;

.field private n:Ljava/io/File;

.field private final q:Lb/a/c/k;

.field private r:Ljava/lang/String;

.field private s:Ljava/lang/String;

.field private volatile t:Ljava/lang/String;

.field private volatile u:Z

.field private v:Z

.field private w:Ljava/lang/String;

.field private final x:Landroid/text/format/Time;

.field private y:Z

.field private z:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 253
    const/4 v0, 0x5

    sput v0, Lb/a/i;->o:I

    .line 254
    const/16 v0, 0x14

    sput v0, Lb/a/i;->p:I

    return-void
.end method

.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 87
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 107
    const-wide/32 v0, 0xc800

    iput-wide v0, p0, Lb/a/i;->c:J

    .line 120
    iput-boolean v2, p0, Lb/a/i;->d:Z

    .line 125
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lb/a/i;->e:Ljava/util/ArrayList;

    .line 131
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lb/a/i;->f:Ljava/util/Map;

    .line 136
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lb/a/i;->g:Ljava/util/Map;

    .line 224
    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v0, p0, Lb/a/i;->a:Ljava/util/Map;

    .line 227
    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v0, p0, Lb/a/i;->b:Ljava/util/Map;

    .line 234
    iput-boolean v2, p0, Lb/a/i;->i:Z

    .line 235
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lb/a/i;->j:Ljava/lang/Object;

    .line 249
    const/4 v0, 0x0

    iput-object v0, p0, Lb/a/i;->n:Ljava/io/File;

    .line 255
    new-instance v0, Lb/a/c/k;

    sget v1, Lb/a/i;->p:I

    invoke-direct {v0, v1}, Lb/a/c/k;-><init>(I)V

    iput-object v0, p0, Lb/a/i;->q:Lb/a/c/k;

    .line 263
    iput-boolean v2, p0, Lb/a/i;->u:Z

    .line 268
    new-instance v0, Landroid/text/format/Time;

    invoke-direct {v0}, Landroid/text/format/Time;-><init>()V

    iput-object v0, p0, Lb/a/i;->x:Landroid/text/format/Time;

    .line 270
    iput-boolean v2, p0, Lb/a/i;->y:Z

    .line 1454
    return-void
.end method

.method static synthetic a(Lb/a/i;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 87
    iget-object v0, p0, Lb/a/i;->m:Landroid/content/Context;

    return-object v0
.end method

.method private a(Landroid/content/Context;Ljava/lang/String;)Lb/a/d;
    .locals 7
    .parameter
    .parameter

    .prologue
    .line 1550
    const-string v2, "acra-reports"

    sget-object v4, Lb/a/k;->a:Lb/a/k;

    iget-wide v5, p0, Lb/a/i;->c:J

    move-object v0, p0

    move-object v1, p1

    move-object v3, p2

    invoke-direct/range {v0 .. v6}, Lb/a/i;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lb/a/k;J)Lb/a/d;

    move-result-object v0

    return-object v0
.end method

.method private a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lb/a/k;J)Lb/a/d;
    .locals 8
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v0, 0x0

    .line 1569
    new-instance v1, Lb/a/d;

    invoke-direct {v1}, Lb/a/d;-><init>()V

    .line 1570
    invoke-static {p1, p2, p3}, Lb/a/i;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;

    move-result-object v3

    .line 1571
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v3}, Ljava/io/File;->lastModified()J

    move-result-wide v6

    sub-long/2addr v4, v6

    const-wide/32 v6, 0x5265c00

    cmp-long v2, v4, v6

    if-lez v2, :cond_0

    .line 1572
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "crash report "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " was too old; deleted"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 1573
    invoke-direct {p0, p1, p2, p3}, Lb/a/i;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 1618
    :goto_0
    return-object v0

    .line 1578
    :cond_0
    const-string v2, ".temp_stacktrace"

    invoke-virtual {p3, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v3}, Ljava/io/File;->lastModified()J

    move-result-wide v6

    sub-long/2addr v4, v6

    const-wide/32 v6, 0x927c0

    cmp-long v2, v4, v6

    if-gez v2, :cond_1

    .line 1580
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "temp file "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " is too recent; skipping"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 1583
    :cond_1
    invoke-virtual {v3}, Ljava/io/File;->length()J

    move-result-wide v4

    cmp-long v2, v4, p5

    if-lez v2, :cond_2

    .line 1584
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, ""

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v3}, Ljava/io/File;->length()J

    move-result-wide v3

    invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "-byte crash report "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " exceeded max size of "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p5, p6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " bytes; deleted"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 1586
    invoke-direct {p0, p1, p2, p3}, Lb/a/i;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 1590
    :cond_2
    new-instance v4, Ljava/io/FileInputStream;

    invoke-direct {v4, v3}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    .line 1591
    const/4 v2, 0x0

    .line 1594
    :try_start_0
    sget-object v0, Lb/a/k;->a:Lb/a/k;

    if-ne p4, v0, :cond_3

    .line 1595
    invoke-virtual {v1, v4}, Lb/a/d;->a(Ljava/io/InputStream;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    .line 1610
    :goto_1
    invoke-virtual {v4}, Ljava/io/FileInputStream;->close()V

    .line 1616
    :goto_2
    invoke-virtual {p0, v1}, Lb/a/i;->a(Lb/a/d;)V

    move-object v0, v1

    .line 1618
    goto/16 :goto_0

    .line 1597
    :cond_3
    :try_start_1
    invoke-virtual {v3}, Ljava/io/File;->length()J

    move-result-wide v5

    long-to-int v0, v5

    .line 1598
    invoke-direct {p0, v4, v0}, Lb/a/i;->a(Ljava/io/InputStream;I)Ljava/lang/String;

    move-result-object v0

    .line 1599
    sget-object v3, Lb/a/r;->U:Lb/a/r;

    invoke-virtual {v1, v3, v0}, Lb/a/d;->put(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1

    .line 1601
    :catch_0
    move-exception v0

    .line 1602
    :try_start_2
    sget-object v3, Lb/a/r;->T:Lb/a/r;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "throwable: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v3, v5}, Lb/a/d;->put(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object;

    .line 1603
    sget-object v3, Lb/a/a;->a:Ljava/lang/String;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "Could not load crash report:"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, " "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1604
    invoke-virtual {v4}, Ljava/io/FileInputStream;->close()V

    .line 1605
    const/4 v2, 0x1

    .line 1606
    invoke-virtual {p1, p3}, Landroid/content/Context;->deleteFile(Ljava/lang/String;)Z

    .line 1607
    sget-object v0, Lb/a/a;->a:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Crash report:"

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v5, " deleted"

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_2

    .line 1609
    :catchall_0
    move-exception v0

    move v1, v2

    if-nez v1, :cond_4

    .line 1610
    invoke-virtual {v4}, Ljava/io/FileInputStream;->close()V

    :cond_4
    throw v0
.end method

.method private a(Ljava/lang/Throwable;Ljava/util/Map;Ljava/lang/String;[Lb/a/r;Z)Lb/a/m;
    .locals 10
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Throwable;",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;",
            "Ljava/lang/String;",
            "[",
            "Lb/a/r;",
            "Z)",
            "Lb/a/m;"
        }
    .end annotation

    .prologue
    .line 1149
    invoke-virtual {p0, p1}, Lb/a/i;->b(Ljava/lang/Throwable;)Ljava/lang/Throwable;

    move-result-object v0

    .line 1150
    invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    .line 1153
    invoke-direct {p0, v0}, Lb/a/i;->e(Ljava/lang/Throwable;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 1154
    const/4 v0, 0x0

    .line 1272
    :goto_0
    return-object v0

    .line 1159
    :cond_0
    new-instance v4, Lb/a/d;

    invoke-direct {v4}, Lb/a/d;-><init>()V

    .line 1163
    instance-of v0, p1, Lb/a/p;

    if-eqz v0, :cond_3

    move-object v0, p1

    check-cast v0, Lb/a/p;

    invoke-interface {v0}, Lb/a/p;->a()Ljava/lang/String;

    move-result-object v0

    .line 1165
    :goto_1
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Handling exception for "

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v1, v2, p1, p3}, Lb/a/i;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Ljava/lang/String;)V

    .line 1174
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Generating report file for "

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1175
    const-string v0, ".temp_stacktrace"

    invoke-direct {p0, v3, v0}, Lb/a/i;->a(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 1176
    iget-object v1, p0, Lb/a/i;->m:Landroid/content/Context;

    const-string v2, "acra-reports"

    invoke-static {v1, v2, v0}, Lb/a/i;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;

    move-result-object v8

    .line 1177
    const-string v0, ".stacktrace"

    invoke-direct {p0, v3, v0}, Lb/a/i;->a(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 1178
    iget-object v0, p0, Lb/a/i;->m:Landroid/content/Context;

    const-string v1, "acra-reports"

    invoke-static {v0, v1, v6}, Lb/a/i;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;

    move-result-object v9

    .line 1180
    const/4 v1, 0x0

    .line 1181
    const/4 v5, 0x0

    .line 1187
    :try_start_0
    iget-boolean v0, p0, Lb/a/i;->y:Z

    if-eqz v0, :cond_1

    .line 1188
    iget-object v0, p0, Lb/a/i;->n:Ljava/io/File;

    invoke-virtual {v0, v8}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    .line 1199
    :cond_1
    new-instance v2, Ljava/io/RandomAccessFile;

    const-string v0, "rw"

    invoke-direct {v2, v8, v0}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 1201
    :try_start_1
    new-instance v0, Ljava/io/FileOutputStream;

    invoke-virtual {v2}, Ljava/io/RandomAccessFile;->getFD()Ljava/io/FileDescriptor;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/FileDescriptor;)V

    invoke-static {v0}, Lb/a/d;->a(Ljava/io/OutputStream;)Ljava/io/Writer;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_6

    move-result-object v5

    move-object v7, v2

    .line 1209
    :goto_2
    :try_start_2
    sget-object v0, Lb/a/r;->R:Lb/a/r;

    invoke-direct {p0, v0, v6, v4, v5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 1210
    sget-object v0, Lb/a/r;->S:Lb/a/r;

    invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v0, v1, v4, v5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 1216
    if-nez p3, :cond_7

    .line 1217
    invoke-direct {p0, p1}, Lb/a/i;->c(Ljava/lang/Throwable;)Ljava/lang/String;

    move-result-object v1

    :goto_3
    move-object v0, p0

    move-object v2, p1

    move-object v3, p4

    move-object v6, p2

    .line 1219
    invoke-direct/range {v0 .. v6}, Lb/a/i;->a(Ljava/lang/String;Ljava/lang/Throwable;[Lb/a/r;Lb/a/d;Ljava/io/Writer;Ljava/util/Map;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    .line 1243
    if-eqz v7, :cond_2

    .line 1244
    :try_start_3
    invoke-virtual {v7}, Ljava/io/RandomAccessFile;->getChannel()Ljava/nio/channels/FileChannel;

    move-result-object v0

    .line 1245
    invoke-virtual {v0}, Ljava/nio/channels/FileChannel;->position()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/nio/channels/FileChannel;->truncate(J)Ljava/nio/channels/FileChannel;

    .line 1247
    invoke-virtual {v7}, Ljava/io/RandomAccessFile;->close()V

    .line 1248
    invoke-virtual {v8, v9}, Ljava/io/File;->renameTo(Ljava/io/File;)Z
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    .line 1256
    :cond_2
    :goto_4
    if-eqz p5, :cond_6

    .line 1257
    iget-boolean v0, p0, Lb/a/i;->u:Z

    if-eqz v0, :cond_5

    new-instance v0, Lb/a/m;

    invoke-direct {v0, p0, v4}, Lb/a/m;-><init>(Lb/a/i;Lb/a/d;)V

    .line 1259
    :goto_5
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    const-string v2, "About to start ReportSenderWorker from #handleException"

    invoke-static {v1, v2}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 1260
    invoke-virtual {v0}, Lb/a/m;->start()V

    goto/16 :goto_0

    .line 1163
    :cond_3
    const-string v0, "crash"

    goto/16 :goto_1

    .line 1202
    :catch_0
    move-exception v0

    .line 1203
    :goto_6
    sget-object v2, Lb/a/a;->a:Ljava/lang/String;

    const-string v7, "An error occurred while creating the report file ..."

    invoke-static {v2, v7, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 1205
    const/4 v0, 0x1

    iput-boolean v0, p0, Lb/a/i;->u:Z

    move-object v7, v1

    goto :goto_2

    .line 1250
    :catch_1
    move-exception v0

    .line 1251
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    const-string v2, "An error occurred while deleting closing the report file ..."

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_4

    .line 1220
    :catch_2
    move-exception v0

    .line 1227
    :try_start_4
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    const-string v2, "An error occurred while gathering crash data ..."

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 1228
    sget-object v1, Lb/a/r;->N:Lb/a/r;

    invoke-direct {p0, v0}, Lb/a/i;->c(Ljava/lang/Throwable;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v1, v2, v4, v5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_4

    .line 1237
    :try_start_5
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    const-string v2, "An error occurred while gathering crash data ..."

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    .line 1243
    :goto_7
    if-eqz v7, :cond_2

    .line 1244
    :try_start_6
    invoke-virtual {v7}, Ljava/io/RandomAccessFile;->getChannel()Ljava/nio/channels/FileChannel;

    move-result-object v0

    .line 1245
    invoke-virtual {v0}, Ljava/nio/channels/FileChannel;->position()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/nio/channels/FileChannel;->truncate(J)Ljava/nio/channels/FileChannel;

    .line 1247
    invoke-virtual {v7}, Ljava/io/RandomAccessFile;->close()V

    .line 1248
    invoke-virtual {v8, v9}, Ljava/io/File;->renameTo(Ljava/io/File;)Z
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_3

    goto :goto_4

    .line 1250
    :catch_3
    move-exception v0

    .line 1251
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    const-string v2, "An error occurred while deleting closing the report file ..."

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_4

    .line 1229
    :catch_4
    move-exception v1

    .line 1234
    :try_start_7
    sget-object v2, Lb/a/a;->a:Ljava/lang/String;

    const-string v3, "An error occurred while gathering internal crash data ..."

    invoke-static {v2, v3, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 1235
    sget-object v1, Lb/a/r;->N:Lb/a/r;

    const-string v2, "ACRA_INTERNAL=java.lang.Exception: An exception occurred while trying to collect data about an ACRA internal error\n\tat org.acra.ErrorReporter.handleException(ErrorReporter.java:810)\n\tat org.acra.ErrorReporter.handleException(ErrorReporter.java:866)\n\tat org.acra.ErrorReporter.uncaughtException(ErrorReporter.java:666)\n\tat java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)\n\tat java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)\n"

    invoke-direct {p0, v1, v2, v4, v5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_1

    .line 1237
    :try_start_8
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    const-string v2, "An error occurred while gathering crash data ..."

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_0

    goto :goto_7

    .line 1240
    :catchall_0
    move-exception v0

    .line 1243
    if-eqz v7, :cond_4

    .line 1244
    :try_start_9
    invoke-virtual {v7}, Ljava/io/RandomAccessFile;->getChannel()Ljava/nio/channels/FileChannel;

    move-result-object v1

    .line 1245
    invoke-virtual {v1}, Ljava/nio/channels/FileChannel;->position()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/nio/channels/FileChannel;->truncate(J)Ljava/nio/channels/FileChannel;

    .line 1247
    invoke-virtual {v7}, Ljava/io/RandomAccessFile;->close()V

    .line 1248
    invoke-virtual {v8, v9}, Ljava/io/File;->renameTo(Ljava/io/File;)Z
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_5

    .line 1253
    :cond_4
    :goto_8
    throw v0

    .line 1237
    :catchall_1
    move-exception v1

    :try_start_a
    sget-object v2, Lb/a/a;->a:Ljava/lang/String;

    const-string v3, "An error occurred while gathering crash data ..."

    invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    throw v1
    :try_end_a
    .catchall {:try_start_a .. :try_end_a} :catchall_0

    .line 1250
    :catch_5
    move-exception v1

    .line 1251
    sget-object v2, Lb/a/a;->a:Ljava/lang/String;

    const-string v3, "An error occurred while deleting closing the report file ..."

    invoke-static {v2, v3, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_8

    .line 1257
    :cond_5
    new-instance v0, Lb/a/m;

    invoke-direct {v0, p0}, Lb/a/m;-><init>(Lb/a/i;)V

    goto/16 :goto_5

    .line 1269
    :cond_6
    sget-object v0, Lb/a/a;->a:Ljava/lang/String;

    const-string v1, "ACRA caught an OutOfMemoryError. Report upload deferred until next ACRA launch."

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 1272
    const/4 v0, 0x0

    goto/16 :goto_0

    .line 1202
    :catch_6
    move-exception v0

    move-object v1, v2

    goto/16 :goto_6

    :cond_7
    move-object v1, p3

    goto/16 :goto_3
.end method

.method private static a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1687
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;

    move-result-object v0

    .line 1688
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0, p2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    return-object v1
.end method

.method private static a(Landroid/view/Display;)Ljava/lang/String;
    .locals 5
    .parameter

    .prologue
    const/16 v4, 0xa

    .line 921
    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    .line 922
    invoke-virtual {p0, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 923
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    .line 924
    const-string v2, "width="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {p0}, Landroid/view/Display;->getWidth()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "height="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {p0}, Landroid/view/Display;->getHeight()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "pixelFormat="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {p0}, Landroid/view/Display;->getPixelFormat()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "refreshRate="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {p0}, Landroid/view/Display;->getRefreshRate()F

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "fps"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "metrics.density=x"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v3, v0, Landroid/util/DisplayMetrics;->density:F

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "metrics.scaledDensity=x"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v3, v0, Landroid/util/DisplayMetrics;->scaledDensity:F

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "metrics.widthPixels="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v3, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "metrics.heightPixels="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v3, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "metrics.xdpi="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v3, v0, Landroid/util/DisplayMetrics;->xdpi:F

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "metrics.ydpi="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v0, v0, Landroid/util/DisplayMetrics;->ydpi:F

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    .line 932
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private a(Ljava/io/InputStream;I)Ljava/lang/String;
    .locals 5
    .parameter
    .parameter

    .prologue
    const/4 v0, 0x0

    .line 1655
    .line 1657
    new-array v3, p2, [B

    move v1, v0

    .line 1658
    :goto_0
    sub-int v2, p2, v1

    if-lez v2, :cond_0

    .line 1659
    sub-int v0, p2, v1

    invoke-virtual {p1, v3, v1, v0}, Ljava/io/InputStream;->read([BII)I

    move-result v0

    .line 1660
    const/4 v2, -0x1

    if-ne v0, v2, :cond_2

    .line 1666
    :cond_0
    if-nez v0, :cond_3

    .line 1667
    const-string v0, ""

    .line 1680
    :cond_1
    :goto_1
    return-object v0

    .line 1663
    :cond_2
    add-int/2addr v1, v0

    goto :goto_0

    .line 1671
    :cond_3
    new-instance v0, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V

    .line 1672
    const/4 v2, 0x0

    .line 1674
    :try_start_0
    new-instance v1, Ljava/util/zip/GZIPOutputStream;

    invoke-direct {v1, v0}, Ljava/util/zip/GZIPOutputStream;-><init>(Ljava/io/OutputStream;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1675
    const/4 v2, 0x0

    :try_start_1
    array-length v4, v3

    invoke-virtual {v1, v3, v2, v4}, Ljava/util/zip/GZIPOutputStream;->write([BII)V

    .line 1676
    invoke-virtual {v1}, Ljava/util/zip/GZIPOutputStream;->finish()V

    .line 1677
    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v0

    const/4 v2, 0x0

    invoke-static {v0, v2}, Landroid/util/Base64;->encodeToString([BI)Ljava/lang/String;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    move-result-object v0

    .line 1679
    if-eqz v1, :cond_1

    .line 1680
    invoke-virtual {v1}, Ljava/util/zip/GZIPOutputStream;->close()V

    goto :goto_1

    .line 1679
    :catchall_0
    move-exception v0

    move-object v1, v2

    :goto_2
    if-eqz v1, :cond_4

    .line 1680
    invoke-virtual {v1}, Ljava/util/zip/GZIPOutputStream;->close()V

    :cond_4
    throw v0

    .line 1679
    :catchall_1
    move-exception v0

    goto :goto_2
.end method

.method private a(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/String;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 1344
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "-"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v0, p0, Lb/a/i;->r:Ljava/lang/String;

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "-"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v2, p0, Lb/a/i;->r:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_0
    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_0
    const-string v0, ""

    goto :goto_0
.end method

.method private a(Landroid/content/Context;Ljava/lang/Throwable;[Lb/a/r;Lb/a/d;Ljava/io/Writer;)V
    .locals 5
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v4, 0x0

    .line 807
    invoke-static {p3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    .line 810
    sget-object v0, Lb/a/r;->a:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 811
    sget-object v0, Lb/a/r;->a:Lb/a/r;

    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v0, v2, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 815
    :cond_0
    sget-object v0, Lb/a/r;->J:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 816
    sget-object v0, Lb/a/r;->J:Lb/a/r;

    invoke-direct {p0}, Lb/a/i;->i()Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v0, v2, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 820
    :cond_1
    sget-object v0, Lb/a/r;->u:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 821
    sget-object v0, Lb/a/r;->u:Lb/a/r;

    iget-object v2, p0, Lb/a/i;->x:Landroid/text/format/Time;

    invoke-virtual {v2, v4}, Landroid/text/format/Time;->format3339(Z)Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v0, v2, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 825
    :cond_2
    sget-object v0, Lb/a/r;->O:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 826
    sget-object v0, Lb/a/r;->O:Lb/a/r;

    invoke-direct {p0}, Lb/a/i;->k()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v0, v2, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 830
    :cond_3
    sget-object v0, Lb/a/r;->P:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 831
    sget-object v0, Lb/a/r;->P:Lb/a/r;

    invoke-direct {p0}, Lb/a/i;->l()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v0, v2, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 834
    :cond_4
    sget-object v0, Lb/a/r;->s:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 835
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    .line 836
    sget-object v2, Lb/a/r;->s:Lb/a/r;

    invoke-static {v0}, Lb/a/c;->a(Landroid/content/res/Configuration;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v2, v0, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 840
    :cond_5
    sget-object v0, Lb/a/r;->p:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    .line 841
    invoke-static {}, Lb/a/i;->n()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v0

    .line 842
    sget-object v2, Lb/a/r;->p:Lb/a/r;

    invoke-direct {p0, v2, v0, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 846
    :cond_6
    sget-object v0, Lb/a/r;->w:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_7

    .line 847
    sget-object v0, Lb/a/r;->w:Lb/a/r;

    invoke-static {p1}, Lb/a/h;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v0, v2, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 851
    :cond_7
    sget-object v0, Lb/a/r;->v:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_8

    .line 852
    new-instance v0, Landroid/text/format/Time;

    invoke-direct {v0}, Landroid/text/format/Time;-><init>()V

    .line 853
    invoke-virtual {v0}, Landroid/text/format/Time;->setToNow()V

    .line 854
    sget-object v2, Lb/a/r;->v:Lb/a/r;

    invoke-virtual {v0, v4}, Landroid/text/format/Time;->format3339(Z)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v2, v0, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 858
    :cond_8
    sget-object v0, Lb/a/r;->M:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_9

    .line 860
    instance-of v0, p2, Ljava/lang/OutOfMemoryError;

    if-eqz v0, :cond_13

    .line 861
    iget-object v0, p0, Lb/a/i;->q:Lb/a/c/k;

    invoke-virtual {v0}, Lb/a/c/k;->toString()Ljava/lang/String;

    move-result-object v0

    .line 865
    :goto_0
    sget-object v2, Lb/a/r;->M:Lb/a/r;

    invoke-direct {p0, v2, v0, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 869
    :cond_9
    sget-object v0, Lb/a/r;->K:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_a

    .line 870
    sget-object v0, Lb/a/r;->K:Lb/a/r;

    invoke-direct {p0}, Lb/a/i;->h()Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v0, v2, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 872
    :cond_a
    invoke-direct {p0}, Lb/a/i;->g()V

    .line 875
    sget-object v0, Lb/a/r;->V:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_b

    .line 876
    sget-object v0, Lb/a/r;->V:Lb/a/r;

    invoke-static {}, Lb/a/c/h;->a()I

    move-result v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v0, v2, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 879
    :cond_b
    sget-object v0, Lb/a/r;->W:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_c

    sget-object v0, Lb/a/r;->X:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_e

    .line 880
    :cond_c
    invoke-static {}, Lb/a/c/h;->b()Lb/a/c/i;

    move-result-object v0

    .line 881
    if-eqz v0, :cond_e

    .line 882
    sget-object v2, Lb/a/r;->W:Lb/a/r;

    invoke-interface {v1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_d

    .line 883
    sget-object v2, Lb/a/r;->W:Lb/a/r;

    iget-object v3, v0, Lb/a/c/i;->a:Ljava/lang/String;

    invoke-direct {p0, v2, v3, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 885
    :cond_d
    sget-object v2, Lb/a/r;->X:Lb/a/r;

    invoke-interface {v1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_e

    .line 886
    sget-object v2, Lb/a/r;->X:Lb/a/r;

    iget-object v0, v0, Lb/a/c/i;->b:Ljava/lang/String;

    invoke-direct {p0, v2, v0, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 894
    :cond_e
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x10

    if-lt v0, v2, :cond_12

    iget-boolean v0, p0, Lb/a/i;->z:Z

    if-eqz v0, :cond_12

    .line 895
    sget-object v0, Lb/a/r;->y:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_f

    .line 896
    sget-object v0, Lb/a/r;->y:Lb/a/r;

    const/4 v2, 0x0

    invoke-static {v2}, Lb/a/o;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v0, v2, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 898
    :cond_f
    sget-object v0, Lb/a/r;->z:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_10

    .line 899
    sget-object v0, Lb/a/r;->z:Lb/a/r;

    const-string v2, "events"

    invoke-static {v2}, Lb/a/o;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v0, v2, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 901
    :cond_10
    sget-object v0, Lb/a/r;->A:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_11

    .line 902
    sget-object v0, Lb/a/r;->A:Lb/a/r;

    const-string v2, "radio"

    invoke-static {v2}, Lb/a/o;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v0, v2, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 904
    :cond_11
    sget-object v0, Lb/a/r;->x:Lb/a/r;

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_12

    .line 905
    iget-object v0, p0, Lb/a/i;->m:Landroid/content/Context;

    invoke-static {}, Lb/a/a;->a()Lb/a/a/b;

    move-result-object v1

    invoke-interface {v1}, Lb/a/a/b;->c()[Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lb/a/g;->a(Landroid/content/Context;[Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 907
    sget-object v1, Lb/a/r;->x:Lb/a/r;

    invoke-direct {p0, v1, v0, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 910
    :cond_12
    return-void

    .line 863
    :cond_13
    iget-object v0, p0, Lb/a/i;->q:Lb/a/c/k;

    sget v2, Lb/a/i;->o:I

    invoke-virtual {v0, v2}, Lb/a/c/k;->a(I)Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_0
.end method

.method private a(Lb/a/d;Ljava/io/Writer;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 732
    invoke-direct {p0}, Lb/a/i;->p()Ljava/util/Map;

    move-result-object v0

    .line 733
    invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 734
    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lb/a/r;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-direct {p0, v1, v0, p1, p2}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    goto :goto_0

    .line 736
    :cond_0
    return-void
.end method

.method private a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V
    .locals 1
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1076
    :try_start_0
    iget-boolean v0, p0, Lb/a/i;->u:Z

    if-eqz v0, :cond_0

    const/4 p4, 0x0

    :cond_0
    invoke-virtual {p3, p1, p2, p4}, Lb/a/d;->a(Lb/a/r;Ljava/lang/String;Ljava/io/Writer;)Ljava/lang/String;
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1081
    :goto_0
    return-void

    .line 1077
    :catch_0
    move-exception v0

    .line 1079
    const/4 v0, 0x1

    iput-boolean v0, p0, Lb/a/i;->u:Z

    goto :goto_0
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Ljava/lang/String;)V
    .locals 3
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 993
    invoke-virtual {p0}, Lb/a/i;->a()Lb/a/n;

    move-result-object v0

    .line 994
    if-eqz v0, :cond_1

    .line 997
    if-eqz p4, :cond_0

    .line 998
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-interface {v0, p1, v1, v2}, Lb/a/n;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 1011
    :goto_0
    return-void

    .line 1000
    :cond_0
    invoke-interface {v0, p1, p2, p3}, Lb/a/n;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0

    .line 1005
    :cond_1
    if-eqz p4, :cond_2

    .line 1006
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 1008
    :cond_2
    invoke-static {p1, p2, p3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0
.end method

.method private a(Ljava/lang/String;Ljava/lang/Throwable;[Lb/a/r;Lb/a/d;Ljava/io/Writer;Ljava/util/Map;)V
    .locals 6
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/Throwable;",
            "[",
            "Lb/a/r;",
            "Lb/a/d;",
            "Ljava/io/Writer;",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 1040
    if-nez p3, :cond_1

    .line 1041
    sget-object v3, Lb/a/a;->c:[Lb/a/r;

    .line 1045
    :goto_0
    sget-object v0, Lb/a/r;->c:Lb/a/r;

    invoke-virtual {p0}, Lb/a/i;->b()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v0, v1, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 1049
    sget-object v0, Lb/a/r;->r:Lb/a/r;

    invoke-direct {p0, v0, p1, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 1051
    iget-object v0, p0, Lb/a/i;->f:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 1052
    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lb/a/r;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-direct {p0, v1, v0, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    goto :goto_1

    .line 1055
    :cond_0
    iget-object v1, p0, Lb/a/i;->m:Landroid/content/Context;

    move-object v0, p0

    move-object v2, p2

    move-object v4, p4

    move-object v5, p5

    invoke-direct/range {v0 .. v5}, Lb/a/i;->a(Landroid/content/Context;Ljava/lang/Throwable;[Lb/a/r;Lb/a/d;Ljava/io/Writer;)V

    .line 1056
    invoke-direct {p0, p4, p5}, Lb/a/i;->a(Lb/a/d;Ljava/io/Writer;)V

    .line 1058
    sget-object v0, Lb/a/r;->q:Lb/a/r;

    invoke-virtual {p0, p6, p2}, Lb/a/i;->a(Ljava/util/Map;Ljava/lang/Throwable;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v0, v1, p4, p5}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    .line 1059
    return-void

    :cond_1
    move-object v3, p3

    goto :goto_0
.end method

.method private a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v0, 0x0

    .line 423
    if-eqz p2, :cond_1

    const-string v1, "\n"

    const-string v2, "\\n"

    invoke-virtual {p2, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v1

    .line 424
    :goto_0
    if-eqz p3, :cond_0

    const-string v0, "\n"

    const-string v2, "\\n"

    invoke-virtual {p3, v0, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    .line 425
    :cond_0
    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 426
    return-void

    :cond_1
    move-object v1, v0

    .line 423
    goto :goto_0
.end method

.method private a(Ljava/lang/StringBuilder;Ljava/util/Map;)V
    .locals 3
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/StringBuilder;",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 414
    invoke-interface {p2}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 415
    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 416
    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 417
    invoke-direct {p0, p1, v1, v0}, Lb/a/i;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 419
    :cond_0
    return-void
.end method

.method private a(Ljava/lang/StringBuilder;Ljava/util/Map;Ljava/lang/Throwable;)V
    .locals 4
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/StringBuilder;",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Lb/a/e;",
            ">;",
            "Ljava/lang/Throwable;",
            ")V"
        }
    .end annotation

    .prologue
    .line 398
    invoke-interface {p2}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 399
    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 402
    :try_start_0
    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lb/a/e;

    invoke-interface {v0, p3}, Lb/a/e;->a(Ljava/lang/Throwable;)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    .line 407
    if-eqz v0, :cond_0

    .line 408
    invoke-direct {p0, p1, v1, v0}, Lb/a/i;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 403
    :catch_0
    move-exception v0

    .line 404
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    const-string v3, "Caught throwable while getting custom report data"

    invoke-static {v1, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0

    .line 411
    :cond_1
    return-void
.end method

.method private b(Landroid/content/Context;)I
    .locals 10
    .parameter

    .prologue
    const/4 v7, 0x0

    const/4 v9, 0x0

    .line 1462
    sget-object v0, Lb/a/a;->a:Ljava/lang/String;

    const-string v1, "#reportNativeCrashes - start"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1465
    const-string v0, "minidumps"

    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/String;

    const-string v2, ".dmp"

    aput-object v2, v1, v7

    invoke-virtual {p0, v0, v1}, Lb/a/i;->a(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v8

    .line 1466
    if-eqz v8, :cond_2

    array-length v0, v8

    if-lez v0, :cond_2

    .line 1467
    invoke-static {v8}, Ljava/util/Arrays;->sort([Ljava/lang/Object;)V

    .line 1470
    new-instance v4, Lb/a/d;

    invoke-direct {v4}, Lb/a/d;-><init>()V

    .line 1472
    :try_start_0
    const-string v1, "native crash"

    new-instance v2, Lb/a/l;

    const/4 v0, 0x0

    invoke-direct {v2, p0, v0}, Lb/a/l;-><init>(Lb/a/i;Lb/a/j;)V

    sget-object v3, Lb/a/a;->b:[Lb/a/r;

    const/4 v5, 0x0

    const/4 v6, 0x0

    move-object v0, p0

    invoke-direct/range {v0 .. v6}, Lb/a/i;->a(Ljava/lang/String;Ljava/lang/Throwable;[Lb/a/r;Lb/a/d;Ljava/io/Writer;Ljava/util/Map;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 1486
    :goto_0
    array-length v2, v8

    move v1, v7

    :goto_1
    if-ge v7, v2, :cond_1

    aget-object v3, v8, v7

    .line 1488
    :try_start_1
    invoke-direct {p0, p1, v3}, Lb/a/i;->b(Landroid/content/Context;Ljava/lang/String;)Lb/a/d;

    move-result-object v5

    .line 1489
    const-string v0, "load failed"

    .line 1490
    if-eqz v5, :cond_0

    .line 1491
    sget-object v0, Lb/a/r;->U:Lb/a/r;

    invoke-virtual {v5, v0}, Lb/a/d;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 1494
    :cond_0
    sget-object v5, Lb/a/r;->a:Lb/a/r;

    const/4 v6, 0x0

    const/16 v9, 0x2e

    invoke-virtual {v3, v9}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v9

    invoke-virtual {v3, v6, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    const/4 v9, 0x0

    invoke-virtual {v4, v5, v6, v9}, Lb/a/d;->a(Lb/a/r;Ljava/lang/String;Ljava/io/Writer;)Ljava/lang/String;

    .line 1495
    sget-object v5, Lb/a/r;->U:Lb/a/r;

    const/4 v6, 0x0

    invoke-virtual {v4, v5, v0, v6}, Lb/a/d;->a(Lb/a/r;Ljava/lang/String;Ljava/io/Writer;)Ljava/lang/String;

    .line 1496
    sget-object v0, Lb/a/r;->S:Lb/a/r;

    const-string v5, "native crash"

    const/4 v6, 0x0

    invoke-virtual {v4, v0, v5, v6}, Lb/a/d;->a(Lb/a/r;Ljava/lang/String;Ljava/io/Writer;)Ljava/lang/String;

    .line 1497
    invoke-direct {p0, v4}, Lb/a/i;->b(Lb/a/d;)V

    .line 1498
    const-string v0, "minidumps"

    invoke-direct {p0, p1, v0, v3}, Lb/a/i;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catch Lb/a/b/c; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_2

    .line 1499
    add-int/lit8 v1, v1, 0x1

    .line 1486
    add-int/lit8 v7, v7, 0x1

    goto :goto_1

    .line 1480
    :catch_0
    move-exception v0

    .line 1482
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "retrieve exception: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 1483
    sget-object v1, Lb/a/r;->T:Lb/a/r;

    invoke-direct {p0, v1, v0, v4, v9}, Lb/a/i;->a(Lb/a/r;Ljava/lang/String;Lb/a/d;Ljava/io/Writer;)V

    goto :goto_0

    .line 1500
    :catch_1
    move-exception v0

    .line 1502
    sget-object v2, Lb/a/a;->a:Ljava/lang/String;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Failed to send native crash report "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    move v0, v1

    .line 1513
    :goto_2
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "#reportNativeCrashes - finish, sent: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-static {v0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1514
    return v0

    .line 1504
    :catch_2
    move-exception v0

    .line 1505
    sget-object v2, Lb/a/a;->a:Ljava/lang/String;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Failed on native crash file "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, v4, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 1506
    const-string v0, "minidumps"

    invoke-direct {p0, p1, v0, v3}, Lb/a/i;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    move v0, v1

    .line 1507
    goto :goto_2

    :cond_1
    move v0, v1

    goto :goto_2

    :cond_2
    move v0, v7

    goto :goto_2
.end method

.method private b(Landroid/content/Context;Ljava/lang/String;)Lb/a/d;
    .locals 7
    .parameter
    .parameter

    .prologue
    .line 1557
    const-string v2, "minidumps"

    sget-object v4, Lb/a/k;->b:Lb/a/k;

    const-wide/32 v5, 0x7d000

    move-object v0, p0

    move-object v1, p1

    move-object v3, p2

    invoke-direct/range {v0 .. v6}, Lb/a/i;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lb/a/k;J)Lb/a/d;

    move-result-object v0

    return-object v0
.end method

.method private b(J)Ljava/lang/String;
    .locals 2
    .parameter

    .prologue
    .line 655
    new-instance v0, Landroid/text/format/Time;

    invoke-direct {v0}, Landroid/text/format/Time;-><init>()V

    .line 656
    invoke-virtual {v0, p1, p2}, Landroid/text/format/Time;->set(J)V

    .line 657
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/text/format/Time;->format3339(Z)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1692
    invoke-static {p1, p2, p3}, Lb/a/i;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    move-result v0

    .line 1693
    if-nez v0, :cond_0

    .line 1694
    sget-object v0, Lb/a/a;->a:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Could not delete error report : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 1696
    :cond_0
    return-void
.end method

.method private b(Lb/a/d;)V
    .locals 6
    .parameter

    .prologue
    .line 1325
    const/4 v0, 0x0

    .line 1326
    iget-object v1, p0, Lb/a/i;->e:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    move v1, v0

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lb/a/b/b;

    .line 1328
    :try_start_0
    invoke-interface {v0, p1}, Lb/a/b/b;->a(Lb/a/d;)V
    :try_end_0
    .catch Lb/a/b/c; {:try_start_0 .. :try_end_0} :catch_0

    .line 1331
    const/4 v0, 0x1

    :goto_1
    move v1, v0

    .line 1340
    goto :goto_0

    .line 1332
    :catch_0
    move-exception v3

    .line 1333
    if-nez v1, :cond_0

    .line 1334
    throw v3

    .line 1336
    :cond_0
    sget-object v3, Lb/a/a;->a:Ljava/lang/String;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "ReportSender of class "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v4, " failed but other senders completed their task. ACRA will not send this report again."

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v3, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    move v0, v1

    goto :goto_1

    .line 1341
    :cond_1
    return-void
.end method

.method public static c()Lb/a/i;
    .locals 1

    .prologue
    .line 576
    sget-object v0, Lb/a/i;->l:Lb/a/i;

    if-nez v0, :cond_0

    .line 577
    new-instance v0, Lb/a/i;

    invoke-direct {v0}, Lb/a/i;-><init>()V

    sput-object v0, Lb/a/i;->l:Lb/a/i;

    .line 579
    :cond_0
    sget-object v0, Lb/a/i;->l:Lb/a/i;

    return-object v0
.end method

.method private c(Ljava/lang/Throwable;)Ljava/lang/String;
    .locals 2
    .parameter

    .prologue
    .line 1019
    if-nez p1, :cond_0

    .line 1020
    new-instance p1, Ljava/lang/Exception;

    const-string v0, "Report requested by developer"

    invoke-direct {p1, v0}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    .line 1023
    :cond_0
    new-instance v0, Ljava/io/StringWriter;

    invoke-direct {v0}, Ljava/io/StringWriter;-><init>()V

    .line 1024
    new-instance v1, Ljava/io/PrintWriter;

    invoke-direct {v1, v0}, Ljava/io/PrintWriter;-><init>(Ljava/io/Writer;)V

    .line 1025
    invoke-virtual {p1, v1}, Ljava/lang/Throwable;->printStackTrace(Ljava/io/PrintWriter;)V

    .line 1026
    invoke-virtual {v1}, Ljava/io/PrintWriter;->close()V

    .line 1028
    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private d(Ljava/lang/Throwable;)[Lb/a/r;
    .locals 1
    .parameter

    .prologue
    .line 1782
    instance-of v0, p1, Ljava/lang/OutOfMemoryError;

    if-eqz v0, :cond_0

    sget-object v0, Lb/a/a;->c:[Lb/a/r;

    :goto_0
    return-object v0

    :cond_0
    sget-object v0, Lb/a/a;->b:[Lb/a/r;

    goto :goto_0
.end method

.method private e(Ljava/lang/Throwable;)Z
    .locals 3
    .parameter

    .prologue
    const/4 v0, 0x1

    .line 1818
    iget-object v1, p0, Lb/a/i;->j:Ljava/lang/Object;

    monitor-enter v1

    .line 1819
    :try_start_0
    iget-boolean v2, p0, Lb/a/i;->i:Z

    if-eqz v2, :cond_0

    .line 1821
    const/4 v0, 0x0

    monitor-exit v1

    .line 1828
    :goto_0
    return v0

    .line 1824
    :cond_0
    instance-of v2, p1, Ljava/lang/OutOfMemoryError;

    if-eqz v2, :cond_1

    .line 1826
    const/4 v2, 0x1

    iput-boolean v2, p0, Lb/a/i;->i:Z

    .line 1828
    :cond_1
    monitor-exit v1

    goto :goto_0

    .line 1829
    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method

.method private f()Ljava/lang/String;
    .locals 4

    .prologue
    .line 432
    iget-boolean v0, p0, Lb/a/i;->v:Z

    if-eqz v0, :cond_0

    .line 433
    iget-object v0, p0, Lb/a/i;->w:Ljava/lang/String;

    .line 457
    :goto_0
    return-object v0

    .line 436
    :cond_0
    const/4 v0, 0x0

    iput-object v0, p0, Lb/a/i;->w:Ljava/lang/String;

    .line 437
    invoke-static {}, Landroid/os/Process;->myPid()I

    move-result v1

    .line 439
    iget-object v0, p0, Lb/a/i;->m:Landroid/content/Context;

    const-string v2, "activity"

    invoke-virtual {v0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/ActivityManager;

    .line 440
    if-nez v0, :cond_1

    .line 441
    iget-object v0, p0, Lb/a/i;->w:Ljava/lang/String;

    goto :goto_0

    .line 444
    :cond_1
    invoke-virtual {v0}, Landroid/app/ActivityManager;->getRunningAppProcesses()Ljava/util/List;

    move-result-object v0

    .line 445
    if-nez v0, :cond_2

    .line 446
    iget-object v0, p0, Lb/a/i;->w:Ljava/lang/String;

    goto :goto_0

    .line 449
    :cond_2
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_3
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/ActivityManager$RunningAppProcessInfo;

    .line 450
    iget v3, v0, Landroid/app/ActivityManager$RunningAppProcessInfo;->pid:I

    if-ne v3, v1, :cond_3

    .line 451
    iget-object v0, v0, Landroid/app/ActivityManager$RunningAppProcessInfo;->processName:Ljava/lang/String;

    iput-object v0, p0, Lb/a/i;->w:Ljava/lang/String;

    .line 456
    :cond_4
    const/4 v0, 0x1

    iput-boolean v0, p0, Lb/a/i;->v:Z

    .line 457
    iget-object v0, p0, Lb/a/i;->w:Ljava/lang/String;

    goto :goto_0
.end method

.method private g()V
    .locals 1

    .prologue
    .line 461
    const/4 v0, 0x0

    iput-object v0, p0, Lb/a/i;->w:Ljava/lang/String;

    .line 462
    const/4 v0, 0x0

    iput-boolean v0, p0, Lb/a/i;->v:Z

    .line 463
    return-void
.end method

.method private h()Ljava/lang/String;
    .locals 1

    .prologue
    .line 470
    invoke-direct {p0}, Lb/a/i;->f()Ljava/lang/String;

    move-result-object v0

    .line 471
    if-nez v0, :cond_0

    .line 472
    const-string v0, "n/a"

    .line 474
    :cond_0
    return-object v0
.end method

.method private i()Ljava/lang/String;
    .locals 6

    .prologue
    .line 483
    invoke-direct {p0}, Lb/a/i;->f()Ljava/lang/String;

    move-result-object v3

    .line 484
    if-nez v3, :cond_3

    .line 485
    const/4 v1, 0x0

    .line 487
    :try_start_0
    new-instance v0, Ljava/io/FileReader;

    const-string v2, "/proc/self/cmdline"

    invoke-direct {v0, v2}, Ljava/io/FileReader;-><init>(Ljava/lang/String;)V

    .line 488
    new-instance v2, Ljava/io/BufferedReader;

    const/16 v4, 0x80

    invoke-direct {v2, v0, v4}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 489
    :try_start_1
    invoke-virtual {v2}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2

    move-result-object v0

    .line 490
    if-eqz v0, :cond_0

    .line 491
    :try_start_2
    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_3

    move-result-object v0

    .line 497
    :cond_0
    :goto_0
    if-eqz v2, :cond_1

    .line 499
    :try_start_3
    invoke-virtual {v2}, Ljava/io/BufferedReader;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1

    .line 506
    :cond_1
    :goto_1
    if-nez v0, :cond_2

    .line 507
    const-string v0, ""

    .line 509
    :cond_2
    return-object v0

    .line 493
    :catch_0
    move-exception v0

    move-object v2, v3

    .line 494
    :goto_2
    sget-object v3, Lb/a/a;->a:Ljava/lang/String;

    const-string v4, "Failed to get process name."

    invoke-static {v3, v4, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    move-object v0, v2

    move-object v2, v1

    goto :goto_0

    .line 500
    :catch_1
    move-exception v1

    .line 501
    sget-object v2, Lb/a/a;->a:Ljava/lang/String;

    const-string v3, "Failed to close file."

    invoke-static {v2, v3, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_1

    .line 493
    :catch_2
    move-exception v0

    move-object v1, v2

    move-object v2, v3

    goto :goto_2

    :catch_3
    move-exception v1

    move-object v5, v1

    move-object v1, v2

    move-object v2, v0

    move-object v0, v5

    goto :goto_2

    :cond_3
    move-object v0, v3

    goto :goto_1
.end method

.method private j()Ljava/lang/String;
    .locals 6

    .prologue
    .line 519
    sget-object v0, Landroid/os/Build;->TAGS:Ljava/lang/String;

    .line 520
    if-eqz v0, :cond_0

    const-string v1, "test-keys"

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 521
    const-string v0, "yes"

    .line 553
    :goto_0
    return-object v0

    .line 526
    :cond_0
    :try_start_0
    new-instance v0, Ljava/io/File;

    const-string v1, "/system/app/Superuser.apk"

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 527
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 528
    const-string v0, "yes"
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 530
    :catch_0
    move-exception v0

    .line 531
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    const-string v2, "Failed to find Superuser.pak"

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 535
    :cond_1
    invoke-static {}, Ljava/lang/System;->getenv()Ljava/util/Map;

    move-result-object v0

    .line 536
    if-eqz v0, :cond_3

    .line 537
    const-string v1, "PATH"

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 538
    const-string v1, ":"

    invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    .line 540
    array-length v3, v2

    const/4 v0, 0x0

    move v1, v0

    :goto_1
    if-ge v1, v3, :cond_3

    aget-object v0, v2, v1

    .line 541
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v4, "/"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v4, "su"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 543
    :try_start_1
    new-instance v4, Ljava/io/File;

    invoke-direct {v4, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 544
    if-eqz v4, :cond_2

    invoke-virtual {v4}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 545
    const-string v0, "yes"
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_0

    .line 547
    :catch_1
    move-exception v0

    .line 548
    sget-object v4, Lb/a/a;->a:Ljava/lang/String;

    const-string v5, "Failed to find su binary in the PATH"

    invoke-static {v4, v5, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 540
    :cond_2
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    .line 553
    :cond_3
    const-string v0, "no"

    goto :goto_0
.end method

.method private k()J
    .locals 2

    .prologue
    .line 560
    invoke-static {}, Landroid/os/Process;->getElapsedCpuTime()J

    move-result-wide v0

    return-wide v0
.end method

.method private l()J
    .locals 2

    .prologue
    .line 567
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    return-wide v0
.end method

.method private m()V
    .locals 8

    .prologue
    .line 667
    const/4 v2, 0x0

    .line 669
    :try_start_0
    iget-object v0, p0, Lb/a/i;->n:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    .line 670
    const/16 v0, 0x2800

    new-array v3, v0, [B

    .line 671
    new-instance v1, Ljava/io/FileOutputStream;

    iget-object v0, p0, Lb/a/i;->n:Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 672
    const/4 v0, 0x0

    :goto_0
    int-to-long v4, v0

    const-wide/32 v6, 0xc800

    cmp-long v2, v4, v6

    if-gez v2, :cond_1

    .line 673
    :try_start_1
    invoke-virtual {v1, v3}, Ljava/io/FileOutputStream;->write([B)V

    .line 672
    array-length v2, v3
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_4

    add-int/2addr v0, v2

    goto :goto_0

    :cond_0
    move-object v1, v2

    .line 680
    :cond_1
    if-eqz v1, :cond_2

    .line 681
    :try_start_2
    invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_2

    .line 685
    :cond_2
    :goto_1
    return-void

    .line 676
    :catch_0
    move-exception v0

    move-object v1, v2

    .line 677
    :goto_2
    :try_start_3
    sget-object v2, Lb/a/a;->a:Ljava/lang/String;

    const-string v3, "Failed to pre-allocate crash report file"

    invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    .line 680
    if-eqz v1, :cond_2

    .line 681
    :try_start_4
    invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_1

    goto :goto_1

    .line 683
    :catch_1
    move-exception v0

    goto :goto_1

    .line 679
    :catchall_0
    move-exception v0

    .line 680
    :goto_3
    if-eqz v2, :cond_3

    .line 681
    :try_start_5
    invoke-virtual {v2}, Ljava/io/FileOutputStream;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3

    .line 683
    :cond_3
    :goto_4
    throw v0

    :catch_2
    move-exception v0

    goto :goto_1

    :catch_3
    move-exception v1

    goto :goto_4

    .line 679
    :catchall_1
    move-exception v0

    move-object v2, v1

    goto :goto_3

    .line 676
    :catch_4
    move-exception v0

    goto :goto_2
.end method

.method private static n()J
    .locals 4

    .prologue
    .line 695
    :try_start_0
    invoke-static {}, Landroid/os/Environment;->getDataDirectory()Ljava/io/File;

    move-result-object v0

    .line 696
    new-instance v1, Landroid/os/StatFs;

    invoke-virtual {v0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Landroid/os/StatFs;-><init>(Ljava/lang/String;)V

    .line 697
    invoke-virtual {v1}, Landroid/os/StatFs;->getBlockSize()I

    move-result v0

    int-to-long v2, v0

    .line 698
    invoke-virtual {v1}, Landroid/os/StatFs;->getAvailableBlocks()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    int-to-long v0, v0

    .line 699
    mul-long/2addr v0, v2

    .line 701
    :goto_0
    return-wide v0

    .line 700
    :catch_0
    move-exception v0

    .line 701
    const-wide/16 v0, -0x1

    goto :goto_0
.end method

.method private static o()J
    .locals 4

    .prologue
    .line 713
    :try_start_0
    invoke-static {}, Landroid/os/Environment;->getDataDirectory()Ljava/io/File;

    move-result-object v0

    .line 714
    new-instance v1, Landroid/os/StatFs;

    invoke-virtual {v0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Landroid/os/StatFs;-><init>(Ljava/lang/String;)V

    .line 715
    invoke-virtual {v1}, Landroid/os/StatFs;->getBlockSize()I

    move-result v0

    int-to-long v2, v0

    .line 716
    invoke-virtual {v1}, Landroid/os/StatFs;->getBlockCount()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    int-to-long v0, v0

    .line 717
    mul-long/2addr v0, v2

    .line 719
    :goto_0
    return-wide v0

    .line 718
    :catch_0
    move-exception v0

    .line 719
    const-wide/16 v0, -0x1

    goto :goto_0
.end method

.method private p()Ljava/util/Map;
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Map",
            "<",
            "Lb/a/r;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .prologue
    .line 746
    iget-object v1, p0, Lb/a/i;->g:Ljava/util/Map;

    monitor-enter v1

    .line 747
    :try_start_0
    iget-object v0, p0, Lb/a/i;->g:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 749
    iget-object v0, p0, Lb/a/i;->g:Ljava/util/Map;

    sget-object v2, Lb/a/r;->l:Lb/a/r;

    const-class v3, Landroid/os/Build;

    invoke-static {v3}, Lb/a/q;->a(Ljava/lang/Class;)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 750
    iget-object v0, p0, Lb/a/i;->g:Ljava/util/Map;

    sget-object v2, Lb/a/r;->Q:Lb/a/r;

    invoke-direct {p0}, Lb/a/i;->j()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 751
    iget-object v0, p0, Lb/a/i;->g:Ljava/util/Map;

    sget-object v2, Lb/a/r;->D:Lb/a/r;

    iget-object v3, p0, Lb/a/i;->m:Landroid/content/Context;

    invoke-static {v3}, Lb/a/c/f;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 752
    iget-object v0, p0, Lb/a/i;->g:Ljava/util/Map;

    sget-object v2, Lb/a/r;->o:Lb/a/r;

    invoke-static {}, Lb/a/i;->o()J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 754
    iget-object v0, p0, Lb/a/i;->h:Lb/a/c/g;

    const-string v2, "android.permission.READ_PHONE_STATE"

    invoke-virtual {v0, v2}, Lb/a/c/g;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 755
    iget-object v0, p0, Lb/a/i;->m:Landroid/content/Context;

    const-string v2, "phone"

    invoke-virtual {v0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/telephony/TelephonyManager;

    .line 757
    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getDeviceId()Ljava/lang/String;

    move-result-object v0

    .line 758
    if-eqz v0, :cond_0

    .line 759
    iget-object v2, p0, Lb/a/i;->g:Ljava/util/Map;

    sget-object v3, Lb/a/r;->C:Lb/a/r;

    invoke-interface {v2, v3, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 763
    :cond_0
    iget-object v0, p0, Lb/a/i;->m:Landroid/content/Context;

    const-string v2, "window"

    invoke-virtual {v0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    .line 766
    iget-object v2, p0, Lb/a/i;->g:Ljava/util/Map;

    sget-object v3, Lb/a/r;->t:Lb/a/r;

    invoke-static {v0}, Lb/a/i;->a(Landroid/view/Display;)Ljava/lang/String;

    move-result-object v0

    invoke-interface {v2, v3, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 767
    iget-object v0, p0, Lb/a/i;->g:Ljava/util/Map;

    sget-object v2, Lb/a/r;->G:Lb/a/r;

    const-class v3, Landroid/os/Environment;

    invoke-static {v3}, Lb/a/q;->b(Ljava/lang/Class;)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 771
    iget-object v0, p0, Lb/a/i;->g:Ljava/util/Map;

    sget-object v2, Lb/a/r;->F:Lb/a/r;

    iget-object v3, p0, Lb/a/i;->m:Landroid/content/Context;

    invoke-static {v3}, Lb/a/f;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 772
    iget-object v0, p0, Lb/a/i;->g:Ljava/util/Map;

    sget-object v2, Lb/a/r;->H:Lb/a/r;

    iget-object v3, p0, Lb/a/i;->m:Landroid/content/Context;

    invoke-static {v3}, Lb/a/s;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 776
    iget-object v0, p0, Lb/a/i;->g:Ljava/util/Map;

    sget-object v2, Lb/a/r;->I:Lb/a/r;

    iget-object v3, p0, Lb/a/i;->m:Landroid/content/Context;

    invoke-static {v3}, Lb/a/s;->b(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 781
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x13

    if-lt v0, v2, :cond_1

    .line 782
    iget-object v0, p0, Lb/a/i;->m:Landroid/content/Context;

    const-string v2, "activity"

    invoke-virtual {v0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/ActivityManager;

    .line 784
    iget-object v2, p0, Lb/a/i;->g:Ljava/util/Map;

    sget-object v3, Lb/a/r;->ab:Lb/a/r;

    invoke-virtual {v0}, Landroid/app/ActivityManager;->isLowRamDevice()Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->toString(Z)Ljava/lang/String;

    move-result-object v0

    invoke-interface {v2, v3, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 788
    :cond_1
    iget-object v0, p0, Lb/a/i;->g:Ljava/util/Map;

    monitor-exit v1

    return-object v0

    .line 789
    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method


# virtual methods
.method public a(Ljava/lang/Throwable;)Lb/a/m;
    .locals 1
    .parameter

    .prologue
    .line 1102
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lb/a/i;->a(Ljava/lang/Throwable;Ljava/util/Map;)Lb/a/m;

    move-result-object v0

    return-object v0
.end method

.method public a(Ljava/lang/Throwable;Ljava/util/Map;)Lb/a/m;
    .locals 6
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Throwable;",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)",
            "Lb/a/m;"
        }
    .end annotation

    .prologue
    .line 1115
    instance-of v0, p1, Ljava/lang/OutOfMemoryError;

    if-nez v0, :cond_0

    const/4 v5, 0x1

    .line 1116
    :goto_0
    invoke-direct {p0, p1}, Lb/a/i;->d(Ljava/lang/Throwable;)[Lb/a/r;

    move-result-object v4

    .line 1117
    const/4 v3, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    invoke-direct/range {v0 .. v5}, Lb/a/i;->a(Ljava/lang/Throwable;Ljava/util/Map;Ljava/lang/String;[Lb/a/r;Z)Lb/a/m;

    move-result-object v0

    return-object v0

    .line 1115
    :cond_0
    const/4 v5, 0x0

    goto :goto_0
.end method

.method public a()Lb/a/n;
    .locals 1

    .prologue
    .line 283
    iget-object v0, p0, Lb/a/i;->A:Lb/a/n;

    return-object v0
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 330
    if-eqz p2, :cond_0

    .line 331
    iget-object v0, p0, Lb/a/i;->a:Ljava/util/Map;

    invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 333
    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {p0, p1}, Lb/a/i;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public a(Ljava/util/Map;Ljava/lang/Throwable;)Ljava/lang/String;
    .locals 2
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;",
            "Ljava/lang/Throwable;",
            ")",
            "Ljava/lang/String;"
        }
    .end annotation

    .prologue
    .line 385
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    .line 386
    iget-object v1, p0, Lb/a/i;->a:Ljava/util/Map;

    invoke-direct {p0, v0, v1}, Lb/a/i;->a(Ljava/lang/StringBuilder;Ljava/util/Map;)V

    .line 387
    if-eqz p1, :cond_0

    .line 388
    invoke-direct {p0, v0, p1}, Lb/a/i;->a(Ljava/lang/StringBuilder;Ljava/util/Map;)V

    .line 390
    :cond_0
    iget-object v1, p0, Lb/a/i;->b:Ljava/util/Map;

    invoke-direct {p0, v0, v1, p2}, Lb/a/i;->a(Ljava/lang/StringBuilder;Ljava/util/Map;Ljava/lang/Throwable;)V

    .line 391
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public a(J)V
    .locals 0
    .parameter

    .prologue
    .line 1749
    iput-wide p1, p0, Lb/a/i;->c:J

    .line 1750
    return-void
.end method

.method declared-synchronized a(Landroid/content/Context;)V
    .locals 10
    .parameter

    .prologue
    const/4 v0, 0x0

    .line 1394
    monitor-enter p0

    :try_start_0
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    const-string v2, "#checkAndSendReports - start"

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1395
    const-string v1, "acra-reports"

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/String;

    const/4 v3, 0x0

    const-string v4, ".stacktrace"

    aput-object v4, v2, v3

    const/4 v3, 0x1

    const-string v4, ".temp_stacktrace"

    aput-object v4, v2, v3

    invoke-virtual {p0, v1, v2}, Lb/a/i;->a(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    .line 1397
    invoke-static {v2}, Ljava/util/Arrays;->sort([Ljava/lang/Object;)V

    .line 1404
    invoke-direct {p0}, Lb/a/i;->h()Ljava/lang/String;

    move-result-object v3

    .line 1405
    array-length v4, v2

    move v1, v0

    :goto_0
    if-ge v1, v4, :cond_2

    aget-object v5, v2, v1

    .line 1406
    const/4 v6, 0x5

    if-lt v0, v6, :cond_0

    .line 1414
    const-string v6, "acra-reports"

    invoke-direct {p0, p1, v6, v5}, Lb/a/i;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 1405
    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 1418
    :cond_0
    sget-object v6, Lb/a/a;->a:Ljava/lang/String;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "Loading file "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1420
    :try_start_1
    invoke-direct {p0, p1, v5}, Lb/a/i;->a(Landroid/content/Context;Ljava/lang/String;)Lb/a/d;

    move-result-object v6

    .line 1422
    if-eqz v6, :cond_1

    .line 1423
    sget-object v7, Lb/a/r;->R:Lb/a/r;

    invoke-virtual {v6, v7, v5}, Lb/a/d;->put(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object;

    .line 1426
    sget-object v7, Lb/a/r;->L:Lb/a/r;

    invoke-virtual {v6, v7, v3}, Lb/a/d;->put(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object;

    .line 1428
    sget-object v7, Lb/a/a;->a:Ljava/lang/String;

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    const-string v9, "Sending file "

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 1429
    invoke-direct {p0, v6}, Lb/a/i;->b(Lb/a/d;)V

    .line 1430
    const-string v6, "acra-reports"

    invoke-direct {p0, p1, v6, v5}, Lb/a/i;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Lb/a/b/c; {:try_start_1 .. :try_end_1} :catch_2

    .line 1444
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 1432
    :catch_0
    move-exception v0

    .line 1433
    :try_start_2
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    const-string v2, "Failed to send crash reports"

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 1434
    const-string v0, "acra-reports"

    invoke-direct {p0, p1, v0, v5}, Lb/a/i;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 1446
    :cond_2
    :goto_2
    sget-object v0, Lb/a/a;->a:Ljava/lang/String;

    const-string v1, "#checkAndSendReports - finish"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1448
    invoke-direct {p0, p1}, Lb/a/i;->b(Landroid/content/Context;)I
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 1449
    monitor-exit p0

    return-void

    .line 1436
    :catch_1
    move-exception v0

    .line 1437
    :try_start_3
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Failed to load crash report for "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 1438
    const-string v0, "acra-reports"

    invoke-direct {p0, p1, v0, v5}, Lb/a/i;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_2

    .line 1394
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    .line 1440
    :catch_2
    move-exception v0

    .line 1441
    :try_start_4
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Failed to send crash report for "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    goto :goto_2
.end method

.method declared-synchronized a(Landroid/content/Context;Lb/a/d;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 1524
    monitor-enter p0

    :try_start_0
    sget-object v0, Lb/a/a;->a:Ljava/lang/String;

    const-string v1, "Sending in-memory report"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1526
    :try_start_1
    invoke-direct {p0}, Lb/a/i;->h()Ljava/lang/String;

    move-result-object v0

    .line 1527
    sget-object v1, Lb/a/r;->L:Lb/a/r;

    invoke-virtual {p2, v1, v0}, Lb/a/d;->put(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object;

    .line 1528
    invoke-direct {p0, p2}, Lb/a/i;->b(Lb/a/d;)V

    .line 1535
    sget-object v0, Lb/a/r;->R:Lb/a/r;

    invoke-virtual {p2, v0}, Lb/a/d;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 1536
    if-eqz v0, :cond_0

    .line 1537
    const-string v1, "acra-reports"

    invoke-static {p1, v1, v0}, Lb/a/i;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    .line 1538
    if-eqz v0, :cond_0

    .line 1539
    invoke-virtual {v0}, Ljava/io/File;->delete()Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    .line 1545
    :cond_0
    :goto_0
    monitor-exit p0

    return-void

    .line 1542
    :catch_0
    move-exception v0

    .line 1543
    :try_start_2
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    const-string v2, "Failed to send in-memory crash report: "

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_0

    .line 1524
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public a(Landroid/content/Context;Z)V
    .locals 7
    .parameter
    .parameter

    .prologue
    .line 593
    iget-object v0, p0, Lb/a/i;->k:Ljava/lang/Thread$UncaughtExceptionHandler;

    if-nez v0, :cond_3

    .line 594
    invoke-static {}, Ljava/lang/Thread;->getDefaultUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler;

    move-result-object v0

    iput-object v0, p0, Lb/a/i;->k:Ljava/lang/Thread$UncaughtExceptionHandler;

    .line 596
    iput-boolean p2, p0, Lb/a/i;->z:Z

    .line 598
    iput-object p1, p0, Lb/a/i;->m:Landroid/content/Context;

    .line 600
    new-instance v0, Lb/a/c/g;

    invoke-direct {v0, p1}, Lb/a/c/g;-><init>(Landroid/content/Context;)V

    .line 601
    invoke-virtual {v0}, Lb/a/c/g;->a()Landroid/content/pm/PackageInfo;

    move-result-object v1

    .line 603
    if-eqz v1, :cond_0

    .line 604
    iget v0, v1, Landroid/content/pm/PackageInfo;->versionCode:I

    invoke-static {v0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lb/a/i;->r:Ljava/lang/String;

    .line 605
    iget-object v0, v1, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

    if-eqz v0, :cond_4

    iget-object v0, v1, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

    :goto_0
    iput-object v0, p0, Lb/a/i;->s:Ljava/lang/String;

    .line 608
    :cond_0
    new-instance v0, Lb/a/c/g;

    invoke-direct {v0, p1}, Lb/a/c/g;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lb/a/i;->h:Lb/a/c/g;

    .line 609
    const-string v0, "os.version"

    invoke-static {v0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 610
    if-eqz v2, :cond_5

    const-string v0, "cyanogenmod"

    invoke-virtual {v2, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    .line 612
    :goto_1
    iget-object v3, p0, Lb/a/i;->x:Landroid/text/format/Time;

    invoke-virtual {v3}, Landroid/text/format/Time;->setToNow()V

    .line 615
    :try_start_0
    iget-object v3, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v4, Lb/a/r;->b:Lb/a/r;

    invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v5

    const-string v6, "android_id"

    invoke-static {v5, v6}, Landroid/provider/Settings$Secure;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-interface {v3, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 617
    iget-object v3, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v4, Lb/a/r;->d:Lb/a/r;

    iget-object v5, p0, Lb/a/i;->r:Ljava/lang/String;

    invoke-interface {v3, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 618
    iget-object v3, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v4, Lb/a/r;->e:Lb/a/r;

    iget-object v5, p0, Lb/a/i;->s:Ljava/lang/String;

    invoke-interface {v3, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 619
    iget-object v3, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v4, Lb/a/r;->f:Lb/a/r;

    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v5

    invoke-interface {v3, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 620
    iget-object v3, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v4, Lb/a/r;->h:Lb/a/r;

    sget-object v5, Landroid/os/Build;->MODEL:Ljava/lang/String;

    invoke-interface {v3, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 621
    iget-object v3, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v4, Lb/a/r;->i:Lb/a/r;

    sget-object v5, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String;

    invoke-interface {v3, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 622
    iget-object v3, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v4, Lb/a/r;->j:Lb/a/r;

    invoke-interface {v3, v4, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 623
    iget-object v2, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v3, Lb/a/r;->k:Lb/a/r;

    invoke-static {v0}, Ljava/lang/Boolean;->toString(Z)Ljava/lang/String;

    move-result-object v0

    invoke-interface {v2, v3, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 624
    iget-object v0, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v2, Lb/a/r;->m:Lb/a/r;

    sget-object v3, Landroid/os/Build;->BRAND:Ljava/lang/String;

    invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 625
    iget-object v0, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v2, Lb/a/r;->n:Lb/a/r;

    sget-object v3, Landroid/os/Build;->PRODUCT:Ljava/lang/String;

    invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 627
    const-string v0, "n/a"

    .line 628
    invoke-virtual {p1}, Landroid/content/Context;->getFilesDir()Ljava/io/File;

    move-result-object v2

    .line 629
    if-eqz v2, :cond_1

    .line 630
    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    .line 632
    :cond_1
    iget-object v2, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v3, Lb/a/r;->g:Lb/a/r;

    invoke-interface {v2, v3, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 634
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x9

    if-lt v0, v2, :cond_2

    .line 635
    iget-object v0, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v2, Lb/a/r;->aa:Lb/a/r;

    sget-object v3, Landroid/os/Build;->SERIAL:Ljava/lang/String;

    invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 637
    if-eqz v1, :cond_2

    .line 638
    iget-object v0, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v2, Lb/a/r;->Y:Lb/a/r;

    iget-wide v3, v1, Landroid/content/pm/PackageInfo;->firstInstallTime:J

    invoke-direct {p0, v3, v4}, Lb/a/i;->b(J)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 639
    iget-object v0, p0, Lb/a/i;->f:Ljava/util/Map;

    sget-object v2, Lb/a/r;->Z:Lb/a/r;

    iget-wide v3, v1, Landroid/content/pm/PackageInfo;->lastUpdateTime:J

    invoke-direct {p0, v3, v4}, Lb/a/i;->b(J)Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 648
    :cond_2
    :goto_2
    const-string v0, "acra-reports"

    const-string v1, "reportfile.prealloc"

    invoke-static {p1, v0, v1}, Lb/a/i;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    iput-object v0, p0, Lb/a/i;->n:Ljava/io/File;

    .line 650
    invoke-direct {p0}, Lb/a/i;->m()V

    .line 652
    :cond_3
    return-void

    .line 605
    :cond_4
    const-string v0, "not set"

    goto/16 :goto_0

    .line 610
    :cond_5
    const/4 v0, 0x0

    goto/16 :goto_1

    .line 642
    :catch_0
    move-exception v0

    .line 645
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    const-string v2, "failed to install constants"

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_2
.end method

.method public a(Lb/a/b/b;)V
    .locals 1
    .parameter

    .prologue
    .line 1732
    iget-object v0, p0, Lb/a/i;->e:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1733
    return-void
.end method

.method a(Lb/a/d;)V
    .locals 3
    .parameter

    .prologue
    .line 1630
    sget-object v0, Lb/a/r;->a:Lb/a/r;

    invoke-virtual {p1, v0}, Lb/a/d;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 1631
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-nez v0, :cond_2

    .line 1632
    :cond_0
    iget-object v0, p0, Lb/a/i;->f:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_1
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 1633
    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {p1, v1}, Lb/a/d;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    if-nez v1, :cond_1

    .line 1634
    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Enum;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {p1, v1, v0}, Lb/a/d;->put(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    .line 1641
    :cond_2
    invoke-virtual {p0}, Lb/a/i;->b()Ljava/lang/String;

    move-result-object v1

    .line 1642
    sget-object v0, Lb/a/r;->c:Lb/a/r;

    invoke-virtual {p1, v0}, Lb/a/d;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 1643
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_3

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 1644
    sget-object v0, Lb/a/r;->c:Lb/a/r;

    invoke-virtual {p1, v0, v1}, Lb/a/d;->put(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object;

    .line 1646
    :cond_3
    return-void
.end method

.method public a(Lb/a/n;)V
    .locals 0
    .parameter

    .prologue
    .line 291
    iput-object p1, p0, Lb/a/i;->A:Lb/a/n;

    .line 292
    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0
    .parameter

    .prologue
    .line 307
    iput-object p1, p0, Lb/a/i;->t:Ljava/lang/String;

    .line 308
    return-void
.end method

.method public varargs a(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
    .locals 5
    .parameter
    .parameter

    .prologue
    const/4 v4, 0x0

    .line 1357
    iget-object v0, p0, Lb/a/i;->m:Landroid/content/Context;

    if-nez v0, :cond_1

    .line 1358
    sget-object v0, Lb/a/a;->a:Ljava/lang/String;

    const-string v1, "Trying to get ACRA reports but ACRA is not initialized."

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1359
    new-array v0, v4, [Ljava/lang/String;

    .line 1383
    :cond_0
    :goto_0
    return-object v0

    .line 1362
    :cond_1
    iget-object v0, p0, Lb/a/i;->m:Landroid/content/Context;

    invoke-virtual {v0, p1, v4}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;

    move-result-object v0

    .line 1363
    if-eqz v0, :cond_2

    .line 1364
    sget-object v1, Lb/a/a;->a:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Looking for error files in "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1367
    new-instance v1, Lb/a/j;

    invoke-direct {v1, p0, p2}, Lb/a/j;-><init>(Lb/a/i;[Ljava/lang/String;)V

    .line 1377
    invoke-virtual {v0, v1}, Ljava/io/File;->list(Ljava/io/FilenameFilter;)[Ljava/lang/String;

    move-result-object v0

    .line 1378
    if-nez v0, :cond_0

    new-array v0, v4, [Ljava/lang/String;

    goto :goto_0

    .line 1380
    :cond_2
    sget-object v0, Lb/a/a;->a:Ljava/lang/String;

    const-string v1, "Application files directory does not exist! The application may not be installed correctly. Please try reinstalling."

    invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 1383
    new-array v0, v4, [Ljava/lang/String;

    goto :goto_0
.end method

.method public b()Ljava/lang/String;
    .locals 1

    .prologue
    .line 299
    iget-object v0, p0, Lb/a/i;->t:Ljava/lang/String;

    return-object v0
.end method

.method public b(Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 347
    iget-object v0, p0, Lb/a/i;->a:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    return-object v0
.end method

.method b(Ljava/lang/Throwable;)Ljava/lang/Throwable;
    .locals 1
    .parameter

    .prologue
    .line 1798
    instance-of v0, p1, Lb/a/p;

    if-eqz v0, :cond_1

    .line 1807
    :cond_0
    return-object p1

    .line 1803
    :cond_1
    :goto_0
    invoke-virtual {p1}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 1804
    invoke-virtual {p1}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;

    move-result-object p1

    goto :goto_0
.end method

.method public b(Lb/a/b/b;)V
    .locals 0
    .parameter

    .prologue
    .line 1758
    invoke-virtual {p0}, Lb/a/i;->e()V

    .line 1759
    invoke-virtual {p0, p1}, Lb/a/i;->a(Lb/a/b/b;)V

    .line 1760
    return-void
.end method

.method public d()Lb/a/m;
    .locals 6

    .prologue
    const/4 v5, 0x0

    const/4 v4, 0x1

    .line 1702
    const-string v0, "acra-reports"

    new-array v1, v4, [Ljava/lang/String;

    const-string v2, ".stacktrace"

    aput-object v2, v1, v5

    invoke-virtual {p0, v0, v1}, Lb/a/i;->a(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 1703
    const-string v1, "minidumps"

    new-array v2, v4, [Ljava/lang/String;

    const-string v3, ".dmp"

    aput-object v3, v2, v5

    invoke-virtual {p0, v1, v2}, Lb/a/i;->a(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    .line 1704
    if-eqz v0, :cond_0

    array-length v0, v0

    if-gtz v0, :cond_1

    :cond_0
    if-eqz v1, :cond_3

    array-length v0, v1

    if-lez v0, :cond_3

    .line 1706
    :cond_1
    sget-object v0, Lb/a/a;->a:Ljava/lang/String;

    const-string v2, "About to start ReportSenderWorker from #checkReportOnApplicationStart"

    invoke-static {v0, v2}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 1707
    if-eqz v1, :cond_2

    array-length v0, v1

    if-lez v0, :cond_2

    .line 1708
    iput-boolean v4, p0, Lb/a/i;->d:Z

    .line 1710
    :cond_2
    new-instance v0, Lb/a/m;

    invoke-direct {v0, p0}, Lb/a/m;-><init>(Lb/a/i;)V

    .line 1711
    invoke-virtual {v0}, Lb/a/m;->start()V

    .line 1714
    :goto_0
    return-object v0

    :cond_3
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public e()V
    .locals 1

    .prologue
    .line 1740
    iget-object v0, p0, Lb/a/i;->e:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 1741
    return-void
.end method

.method public uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
    .locals 6
    .parameter "t"
    .parameter "e"

    .prologue
    const/4 v2, 0x0

    .line 941
    sget-object v0, Lb/a/a;->a:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "ACRA caught a "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v3, " exception for "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v3, p0, Lb/a/i;->m:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v3, ". Building report."

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 946
    const/4 v0, 0x1

    iput-boolean v0, p0, Lb/a/i;->y:Z

    .line 949
    invoke-virtual {p0, p2}, Lb/a/i;->a(Ljava/lang/Throwable;)Lb/a/m;

    move-result-object v0

    .line 951
    if-eqz v0, :cond_1

    .line 952
    :goto_0
    invoke-virtual {v0}, Lb/a/m;->isAlive()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 956
    const-wide/16 v3, 0x64

    :try_start_0
    invoke-static {v3, v4}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 957
    :catch_0
    move-exception v1

    .line 958
    sget-object v3, Lb/a/a;->a:Ljava/lang/String;

    const-string v4, "Error : "

    invoke-static {v3, v4, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0

    .line 962
    :cond_0
    invoke-virtual {v0}, Lb/a/m;->a()Ljava/lang/Throwable;

    move-result-object v1

    .line 963
    if-eqz v1, :cond_1

    .line 964
    sget-object v0, Lb/a/a;->a:Ljava/lang/String;

    const-string v3, "ReportsWorkerSender failed with exception"

    invoke-static {v0, v3, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 968
    invoke-direct {p0, p2}, Lb/a/i;->d(Ljava/lang/Throwable;)[Lb/a/r;

    move-result-object v4

    .line 969
    const/4 v5, 0x0

    move-object v0, p0

    move-object v3, v2

    invoke-direct/range {v0 .. v5}, Lb/a/i;->a(Ljava/lang/Throwable;Ljava/util/Map;Ljava/lang/String;[Lb/a/r;Z)Lb/a/m;

    .line 973
    :cond_1
    iget-object v0, p0, Lb/a/i;->k:Ljava/lang/Thread$UncaughtExceptionHandler;

    if-eqz v0, :cond_2

    .line 974
    iget-object v0, p0, Lb/a/i;->k:Ljava/lang/Thread$UncaughtExceptionHandler;

    invoke-interface {v0, p1, p2}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V

    .line 976
    :cond_2
    return-void
.end method
